package patterns.state;

/**
 * Created by lenovo on 2016/12/9 0009.
 * 具有IState接口对象的行为类，其根据状态属性的变化，而改变自身的行为。
 */
public class Context {
    private IState state;

    public Context() {
        state = null;
    }

    public IState getState() {
        return state;
    }

    public void setState(IState state) {
        this.state = state;
    }
}
